export interface RouteItem {
	menuname: Array<string>
	asdefault?: boolean // 默认显示
	path?: string
	type?: boolean
	component?: string | (() => any)
	isTabMenu?: boolean
	tabTitle?: string
}

export type RoutesConfig = RouteItem[]
const config: RoutesConfig = [
	// 销售管理 - 线索管理
	{
		menuname: ['运营中心', '销售管理', '线索管理'],
		asdefault: true,
		path: '/merchantCenter/clue/list',
		component: '../pages/merchantCenter/sale/clue/list/index.tsx',
	},
	{
		menuname: ['运营中心', '销售管理', '线索管理'],
		asdefault: true,
		path: '/merchantCenter/clue/add',
		component: '../pages/merchantCenter/sale/clue/add/index.tsx',
		tabTitle: '线索新增',
		type: true,
	},
	{
		menuname: ['运营中心', '销售管理', '线索管理'],
		asdefault: true,
		path: '/merchantCenter/clue/edit',
		component: '../pages/merchantCenter/sale/clue/add/index.tsx',
		tabTitle: '线索编辑',
		type: true,
	},
	{
		menuname: ['运营中心', '销售管理', '线索管理'],
		asdefault: true,
		path: '/merchantCenter/clue/detail',
		component: '../pages/merchantCenter/sale/clue/add/index.tsx',
		tabTitle: '线索详情',
		type: true,
	},
	// 渠道管理
	{
		menuname: ['运营中心', '销售管理', '渠道管理'],
		asdefault: true,
		path: '/merchantCenter/channel/list',
		component: '../pages/merchantCenter/sale/channel/list/index.tsx',
	},
	{
		menuname: ['运营中心', '销售管理', '渠道管理'],
		asdefault: true,
		path: '/merchantCenter/channel/add',
		component: '../pages/merchantCenter/sale/channel/add/index.tsx',
		tabTitle: '渠道新增',
		type: true,
	},
	{
		menuname: ['运营中心', '销售管理', '渠道管理'],
		asdefault: true,
		path: '/merchantCenter/channel/edit',
		component: '../pages/merchantCenter/sale/channel/add/index.tsx',
		tabTitle: '渠道编辑',
		type: true,
	},
	{
		menuname: ['运营中心', '销售管理', '渠道管理'],
		asdefault: true,
		path: '/merchantCenter/channel/detail',
		component: '../pages/merchantCenter/sale/channel/add/index.tsx',
		tabTitle: '渠道详情',
		type: true,
	},
	// 渠道拉新奖励规则
	{
		menuname: ['运营中心', '销售管理', '渠道拉新奖励规则'],
		asdefault: true,
		path: '/merchantCenter/channelRule/list',
		component: '../pages/merchantCenter/sale/channelRule/list/index.tsx',
	},
	{
		menuname: ['运营中心', '销售管理', '渠道拉新奖励规则'],
		asdefault: true,
		path: '/merchantCenter/channelRule/add',
		component: '../pages/merchantCenter/sale/channelRule/add/index.tsx',
		tabTitle: '渠道拉新奖励规则新增',
		type: true,
	},
	{
		menuname: ['运营中心', '销售管理', '渠道拉新奖励规则'],
		asdefault: true,
		path: '/merchantCenter/channelRule/edit',
		component: '../pages/merchantCenter/sale/channelRule/add/index.tsx',
		tabTitle: '渠道拉新奖励规则编辑',
		type: true,
	},
	{
		menuname: ['运营中心', '销售管理', '渠道拉新奖励规则'],
		asdefault: true,
		path: '/merchantCenter/channelRule/detail',
		component: '../pages/merchantCenter/sale/channelRule/add/index.tsx',
		tabTitle: '渠道拉新奖励规则详情',
		type: true,
	},
	// 渠道结算
	{
		menuname: ['运营中心', '销售管理', '渠道结算','渠道结算列表'],
		asdefault: true,
		path: '/merchantCenter/channelSettlement/list',
		component:
			'../pages/merchantCenter/sale/channelSettlement/list/index.tsx',
	},
	{
		menuname: ['运营中心', '销售管理', '渠道结算','渠道结算列表'],
		asdefault: true,
		path: '/merchantCenter/channelSettlement/add',
		component: '../pages/merchantCenter/sale/channelSettlement/add/index.tsx',
		tabTitle: '渠道结算列表新增',
		type: true,
	},
	{
		menuname: ['运营中心', '销售管理', '渠道结算', '渠道结算列表'],
		asdefault: true,
		path: '/merchantCenter/channelSettlement/edit',
		component: '../pages/merchantCenter/sale/channelSettlement/add/index.tsx',
		tabTitle: '渠道结算列表编辑',
		type: true,
	},
	{
		menuname: ['运营中心', '销售管理', '渠道结算', '渠道结算列表'],
		asdefault: true,
		path: '/merchantCenter/channelSettlement/detail',
		component: '../pages/merchantCenter/sale/channelSettlement/add/index.tsx',
		tabTitle: '渠道结算列表详情',
		type: true,
	},
	// 渠道奖励明细
	{
		menuname: ['运营中心', '销售管理', '渠道结算','渠道奖励明细'],
		asdefault: true,
		path: '/merchantCenter/rewardDetails',
		component: '../pages/merchantCenter/sale/rewardDetails/index.tsx',
	},
	// 渠道奖励明细
	{
		menuname: ['运营中心', '销售管理', '渠道结算', '补扣费明细表'],
		asdefault: true,
		path: '/merchantCenter/deduction',
		component: '../pages/merchantCenter/sale/deduction/index.tsx',
	},
	// 司机奖励规则
	{
		menuname: ['运营中心', '销售管理', '司机奖励规则'],
		asdefault: true,
		path: '/merchantCenter/driverRewardRules/list',
		component:
			'../pages/merchantCenter/sale/driverRewardRules/list/index.tsx',
	},
	{
		menuname: ['运营中心', '销售管理', '司机奖励规则'],
		asdefault: true,
		path: '/merchantCenter/driverRewardRules/add',
		component:
			'../pages/merchantCenter/sale/driverRewardRules/add/index.tsx',
		tabTitle: '司机奖励规则新建',
		type: true,
	},
	{
		menuname: ['运营中心', '销售管理', '司机奖励规则'],
		asdefault: true,
		path: '/merchantCenter/driverRewardRules/edit',
		component:
			'../pages/merchantCenter/sale/driverRewardRules/add/index.tsx',
		tabTitle: '司机奖励规则编辑',
		type: true,
	},
	{
		menuname: ['运营中心', '销售管理', '司机奖励规则'],
		asdefault: true,
		path: '/merchantCenter/driverRewardRules/process',
		component: '../pages/merchantCenter/sale/driverRewardRules/add/index.tsx',
		tabTitle: '司机奖励规则审核',
		type: true,
	},
	{
		menuname: ['运营中心', '销售管理', '司机奖励规则'],
		asdefault: true,
		path: '/merchantCenter/driverRewardRules/detail',
		component: '../pages/merchantCenter/sale/driverRewardRules/add/index.tsx',
		tabTitle: '司机奖励规则详情',
		type: true,
	},
	// 司机奖励结算
	{
		menuname: ['运营中心', '销售管理', '司机奖励结算', '司机奖励审核列表'],
		asdefault: true,
		path: '/merchantCenter/awardSettlement/processList',
		component: '../pages/merchantCenter/awardSettlement/processList',
	},
	{
		menuname: ['运营中心', '销售管理', '司机奖励结算', '司机奖励审核列表'],
		asdefault: true,
		path: '/merchantCenter/awardSettlement/processList/edit',
		component: '../pages/merchantCenter/awardSettlement/processList/detailEdit',
		tabTitle: '司机奖励审核列表编辑',
		type: true,
	},
	{
		menuname: ['运营中心', '销售管理', '司机奖励结算', '司机奖励审核列表'],
		asdefault: true,
		path: '/merchantCenter/awardSettlement/processList/process',
		component: '../pages/merchantCenter/awardSettlement/processList/detailEdit',
		tabTitle: '司机奖励审核',
		type: true,
	},
	{
		menuname: ['运营中心', '销售管理', '司机奖励结算', '司机奖励审核列表'],
		asdefault: true,
		path: '/merchantCenter/awardSettlement/processList/fee',
		component: '../pages/merchantCenter/awardSettlement/processList/detailEdit',
		tabTitle: '司机奖励补扣费审核',
		type: true,
	},
	{
		menuname: ['运营中心', '销售管理', '司机奖励结算', '司机奖励审核列表'],
		asdefault: true,
		path: '/merchantCenter/awardSettlement/processList/view',
		component: '../pages/merchantCenter/awardSettlement/processList/detailEdit',
		tabTitle: '司机奖励详情',
		type: true,
	},

	{
		menuname: ['运营中心', '销售管理', '司机奖励结算', '司机补贴全生命周期表'],
		asdefault: true,
		path: '/merchantCenter/awardSettlement/driverAllowance',
		component: '../pages/merchantCenter/awardSettlement/driverAllowance',
	},
	{
		menuname: ['运营中心', '销售管理', '司机奖励结算', '司机补贴全生命周期明细表'],
		asdefault: true,
		path: '/merchantCenter/awardSettlement/driverDetailList',
		component: '../pages/merchantCenter/awardSettlement/driverDetailList',
	},
	{
		menuname: ['运营中心', '销售管理', '司机奖励结算', '司机补贴总汇列表'],
		asdefault: true,
		path: '/merchantCenter/awardSettlement/subsidy',
		component: '../pages/merchantCenter/awardSettlement/subsidy',
	},
	{
		menuname: ['运营中心', '销售管理', '司机奖励结算', '司机补贴总汇列表'],
		asdefault: true,
		path: '/merchantCenter/awardSettlement/subsidy/view',
		component:
			'../pages/merchantCenter/awardSettlement/subsidy/child/index.tsx',
		tabTitle: '司机补贴总汇详情',
		type: true,
	},
	{
		menuname: ['运营中心', '销售管理', '司机奖励结算', '司机奖励结算编辑'],
		asdefault: true,
		path: '/merchantCenter/awardSettlement/editor',
		component: '../pages/merchantCenter/sale/awardSettlement/editor',
	},
	{
		menuname: ['运营中心', '销售管理', '司机奖励结算', '司机奖励结算详情'],
		asdefault: true,
		path: '/merchantCenter/awardSettlement/detail',
		component: '../pages/merchantCenter/sale/awardSettlement/detail',
	},
	// 商品方案
	{
		menuname: ['运营中心', '销售管理', '商品方案'],
		asdefault: true,
		path: '/merchantCenter/commodityPlan/list',
		component: '../pages/merchantCenter/commodityPlan/index',
	},
	{
		menuname: ['运营中心', '销售管理', '商品方案'],
		asdefault: true,
		path: '/merchantCenter/commodityPlan/add',
		component: '../pages/merchantCenter/commodityPlan/child/index.tsx',
		tabTitle: '新增商品方案',
		type: true,
	},
	{
		menuname: ['运营中心', '销售管理', '商品方案'],
		asdefault: true,
		path: '/merchantCenter/commodityPlan/edit',
		component: '../pages/merchantCenter/commodityPlan/child/index.tsx',
		tabTitle: '编辑商品方案',
		type: true,
	},
	{
		menuname: ['运营中心', '销售管理', '商品方案'],
		asdefault: true,
		path: '/merchantCenter/commodityPlan/copy',
		component: '../pages/merchantCenter/commodityPlan/child/index.tsx',
		tabTitle: '复制商品方案',
		type: true,
	},
	{
		menuname: ['运营中心', '销售管理', '商品方案'],
		asdefault: true,
		path: '/merchantCenter/commodityPlan/view',
		component: '../pages/merchantCenter/commodityPlan/view/index.tsx',
		tabTitle: '商品方案详情',
		type: true,
	},
	{
		menuname: ['运营中心', '销售管理', '商品方案'],
		asdefault: true,
		path: '/merchantCenter/commodityPlan/process',
		component: '../pages/merchantCenter/commodityPlan/view/index.tsx',
		tabTitle: '商品方案审核',
		type: true,
	},
]

export default config
